<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>

<section class="listKiemHiep boxSubjectRight rightShadow corner3">
	<div class="boxTitleBlack topCorner3">
		<h3>Các chương mới cập nhật</h3>
	</div>
	<ul>
		<c:choose>
			<c:when test="${lstNewChapterTruyen.size() > 0}">
				<c:forEach items="${lstNewChapterTruyen}" var="item">
					<li>
						<c:set var="chapterNumber"><fmt:formatNumber type="number" maxIntegerDigits="4" value="${item.chapterNumber}" pattern="###.###" /></c:set>
						<a class='tooltip textOverflow' href='<spring:url value="/truyen-kiem-hiep/${fn:replace(item.truyenKiemHiep.alias,' ','-')}-chuong-${chapterNumber}-T${item.truyenKiemHiep.id}-C${item.id}.htm" />' title="<h2>Tóm tắt truyện : ${item.truyenKiemHiep.name}</h2><img class='corner' src='${item.truyenKiemHiep.linkImage}/s152/${item.truyenKiemHiep.nameImage}' alt='Truyện kiếm hiệp ${item.truyenKiemHiep.name}' />${item.truyenKiemHiep.info}">
							${item.truyenKiemHiep.name}<br />
							<strong>${item.name}</strong>
						</a>
					</li>
				</c:forEach>
			</c:when>
			<c:otherwise><li>Đang cập nhật...</li></c:otherwise>
		</c:choose>
	</ul>
</section>